#include "../hle.h"

#define UMD_NOT_PRESENT 0x01
#define UMD_PRESENT     0x02
#define UMD_CHANGED     0x04
#define UMD_NOT_READY   0x08
#define UMD_READY       0x10
#define UMD_READABLE    0x20

u8 umdActivated = 1;

u8 __KernelUmdGetState()
{
    u8 state = UMD_PRESENT;
    if (umdActivated) {
        state |= UMD_READY;
        state |= UMD_READABLE;
    }
    else
        state |= UMD_NOT_READY;
    return state;
}

void __KernelUmdActivate()
{
    umdActivated = 1;
}

void __KernelUmdDeactivate()
{
    umdActivated = 0;
}

